package cn.thr.ymcc.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 会员基本信息
 * </p>
 *
 * @author thr
 * @since 2023-02-26
 */
@Accessors(chain = true)
@Data
@TableName("t_user_base_info")
public class UserBaseInfo extends Model<UserBaseInfo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Date createTime = new Date();

    private Date updateTime;

    /**
     * 注册渠道
     */
    private Integer regChannel;

    /**
     * QQ
     */
    private String qq;

    /**
     * 用户等级
     */
    private Integer level = 0;

    /**
     * 成长值
     */
    private Integer growScore = 50;

    /**
     * 推荐人
     */
    private Long referId;

    /**
     * 性别
     */
    private Integer sex;

    /**
     * 生日
     */
    private Date birthday;

    private String areaCode;

    private String address;

    /**
     * 外键
     */
    private Long userId;

}
